package com.bootcamp.sb1126yml.service;

import com.bootcamp.sb1126yml.bean.User;
import com.bootcamp.sb1126yml.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: spring-1125-mvc-java-config
 * @description:
 * @author: Keyu Li
 * @create: 2021-11-25 11:38
 **/

@Service
public class UserServiceImpl implements UserService {

//    @Autowired
    UserMapper userMapper;
    @Override
    public User queryById(Integer id) {
        User user = userMapper.selectUserById(id);
        return user;
    }
}
